package com.dycn.posdashboard.services;

import java.util.Date;

import com.dycn.posdashboard.data.PaginatedInfor;
import com.dycn.posdashboard.data.PosTransactionData;

public interface SyncTransactionDataServices extends CommonServices{

	public static String POS_TRADES_REQUEST_URL="";
	
	//定时获取远程服务上的订单数据更新到本地
	//并且更新缓存中的最新2分钟的订单数量及金额信息
	public void syncTransactionWithRemotePOSSystem(String merchantNo);
	
	/**
	 * 特定商户的最新一次数据同步时间
	 * @param merchantNo
	 */
	public Date getLastSyncDatetime(String merchantNo);
	public void updateLastSyncDatetime(String merchantNo,Date lastSyncDate);
	public PaginatedInfor<PosTransactionData> getPosTransactionDataByHttp(String merchantNo,int pageId);
    public void startPosDataSyncJob();
    
  
    
	
}
